package com.oppo.userServer.enums;

import lombok.Getter;

/**
 * @author 清梦
 * @version 1.0.0
 * @Description 响应状态码枚举
 * @createTime 2023年04月16日 15:07:00
 */
@Getter
public enum ResultEnums {
    /**
     * 请求访问状态枚举
     */
    REQUEST_SUCCESS(200, "请求成功"),
    REQUEST_ERROR(500, "请求异常"),

    /**
     * 接口参数校验枚举
     */
    PARAM_ILLEGAL(500, "参数不合法"),

    ;
    private final Integer code;
    private final String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
